//
//  IMBaseCell.h
//  ChatMainDemo
//
//  Created by peiw on 16/1/21.
//  Copyright © 2016年 peiw. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YYLabel.h"
#import "IMCellDisplayData.h"
#import "IMChatCellProtocol.h"

typedef NS_ENUM(NSInteger , IMCellBubbleLocation) {
    Left ,
    Right ,
    Center ,//用于消息时间等相关提示
};

typedef NS_ENUM(NSInteger , IMChatType) {
    Single , // 单人
    Group , //群
    Bulk , //讨论组
};

@class IMCellBubbleView;
@interface IMBaseCell : UITableViewCell<IMChatCellProtocol>
//外观属性
@property (nonatomic , assign) IMCellBubbleLocation location;
@property (nonatomic , assign) IMChatType chatType;
@property (nonatomic , strong) UIImageView *avatarView;
@property (nonatomic , strong) UILabel *nameLabel;
@property (nonatomic , strong) IMCellBubbleView *bubbleView;
@property (nonatomic , strong) YYLabel *contentLabel;
@property (nonatomic , strong) UIActivityIndicatorView *activityView;

//FUNC
- (void)setContent:(IMCellDisplayData *)cellDisplay;

@end

@interface IMCellBubbleView : UIImageView

@end